package nl.ajonker.railroad.ui;

import nl.ajonker.railroad.sl.LogProcessor;

import javax.swing.*;

public class JLogPanel extends JPanel implements LogProcessor {
    private final JLabel logLabel = new JLabel("Ready");

    public JLogPanel() {
        add(logLabel);
    }

    @Override
    public void processLog(String log) {
        logLabel.setText(log);
        System.out.println("log: " + log);
    }
}
